<!-- ===================== Modal ===================== -->
<div id="modal" class="modal chat_modal fade hide">
	<div class="modal-header">
		<span id="modal_title"></span>
        <button type="button" class="close" data-dismiss="modal">x</button>        
	</div>
	<div class="modal-body">
		<form class="well form-horizontal modal-form">
			<ul class="nav nav-tabs tab_styled_light">
				<li class="active"><a href="#tab1" data-toggle="tab"><?= lang('catalogue_data') ?></a></li>
				<li><a href="#tab2" data-toggle="tab"><?= lang('catalogue_info') ?></a></li>
			</ul>
            <fieldset>
				<input type="hidden" name="id" />
				<div class="tab-content tab_content_light">
					<div id="tab1" class="tab-pane active">
						<!-- START FIELD-->

						<div class="control-group">
							<label class="control-label" for="p_id"><?= lang('catalogue_parent') ?></label>
							<div class="controls">
								<select name="p_id">

								</select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="index"><?= lang('catalogue_index') ?></label>
							<div class="controls">
								<input type="text" name="index">
							</div>
						</div>
					</div>
					<div id="tab2" class="tab-pane fade">
						<ul class="nav nav-tabs tab_styled_light">
							<?php foreach ($langs as $l) { ?>
								<li class="<?= $lang == $l->id ? 'active' : '' ?>"><a href="#tab2<?= $l->id ?>" data-toggle="tab"><?= $l->name ?></a></li>
							<?php } ?>
						</ul>
						<div class="tab-content tab_content_light">
							<? foreach ($langs as $l) { ?>
								<div id="tab2<?= $l->id ?>" class="tab-pane<?= $lang == $l->id ? ' active' : ' fade' ?>">
									<div class="control-group">
										<label class="control-label" for="name"><?= lang('catalogue_name') ?></label>
										<div class="controls">
											<input type="text"  name="info[<?= $l->id ?>][name]">
										</div>
									</div>
									<div class="control-group">
										<label class="control-label" for="description"><?= lang('catalogue_desc') ?></label>
										<div class="controls">
											<textarea name="info[<?= $l->id ?>][description]"></textarea>
										</div>
									</div>
								</div>

							<? } ?>
						</div>
					</div>
				</div>
				<!--END FIELD-->

            </fieldset>
        </form>
	</div>
	<div class="modal-footer">  
		<button class="btn btn-success" id="modal_ok"><?= lang('ok') ?></button>
		<button class="btn" id="modal_cancel"><?= lang('cancel') ?></button>
	</div>
</div>  
